<?php
namespace App\Models\Base;

class Category extends BaseModel
{
    protected $table = 'beesoft_categories';
    protected $fillable = [
        'name',
        'email',
        'password',
    ];

    public static function getTypes(): array {
        $data = self::where('type', 0)->pluck('title', 'id')->toArray();
        array_unshift($data, __('Root'));
        return $data;
    }
}
